package com.lfz.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lfz.demo.entity.ChinaPopulation;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;

/**
 * @author lfz
 * @date 2025/2/24 18:10
 */
public interface IndexService extends IService<ChinaPopulation> {
    Page<ChinaPopulation> findByPage(Specification<ChinaPopulation> spec, Pageable pageable);

    List<ChinaPopulation> findChinaPopulation();
    // 根据普查时间查询数据并按常住人口从多到少排序
    List<ChinaPopulation> findByCensusTime(String censusTime);
}
